var fs = require('fs');
var http = require('http');
var zlib = require('zlib');

var file = fs.createReadStream('./wxapp.wx');
var file2 = fs.createWriteStream('./wxappzip.wx');
var gzipStream = zlib.createGzip();
// var output = zlib.inflate(file);
file.pipe(gzipStream).pipe(file2);

console.log('estt');